/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.noteuser.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.noteuser.entity.NoteUser;
import org.apache.ibatis.annotations.Param;

/**
 * 用户增删改查DAO接口
 * @author liyutg
 * @version 2017-07-26
 */
@MyBatisDao
public interface NoteUserDao extends CrudDao<NoteUser> {
    public int check(@Param("user_name") String user_name,@Param("password") String password);

    public int exist(@Param("type") String type,@Param("content") String content);

    public void create1(@Param("userName") String userName,@Param("password") String password,@Param("mail") String mail);

    public String getMail(@Param("userName") String userName);

    public String username_to_id(@Param("userName") String userName);

    public void update_password(@Param("userName") String userName, @Param("password")String password);

    public String search(@Param("title")String title,@Param("user_id") String user_id);
}